package com.lhl.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试权限接口
 */
@RestController
public class MainController {

    /**
     * 测试权限接口user
     *
     * @return String
     */
    @GetMapping("/user/test")
    private String t1() {
        return "success";
    }

    /**
     * 测试权限接口admin
     *
     * @return String
     */
    @GetMapping("/admin/test")
    private String t2() {
        return "success";
    }

    /**
     * 测试权限接口test
     *
     * @return String
     */
    @GetMapping("/test")
    private String t3() {
        return "success";
    }
}
